<%--
  Created by IntelliJ IDEA.
  User: tande
  Date: 2019/6/18
  Time: 20:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="com.ikun.pojo.TbUser" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%
    TbUser tbUserNow = (TbUser) session.getAttribute("tbUserNow");
%>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <!-- 自适应手机屏幕 -->
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />

    <title>生机校园帮|我的钱包</title>

    <script src="${ctx}/js/jquery-1.11.0.min.js"></script>
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all">
    <script src="${ctx}/layui/layui.js" charset="utf-8"></script>
    <script src="${ctx}/layui/layui.all.js"></script>
    <link rel="stylesheet" href="${ctx}/page/css/mywallet.css">
    <script>
        var ctx = "${ctx}";
    </script>
    <script>
        var user_id = "<%=tbUserNow.getId() %>";
        var nickname = "<%=tbUserNow.getNickname() %>";
        var user_pic = "<%=tbUserNow.getPic() %>";
        var realname = "<%=tbUserNow.getRealname() %>";
        var account = "<%=tbUserNow.getAccount() %>";
        var sex = "<%=tbUserNow.getSex() %>";
        var email = "<%=tbUserNow.getEmail() %>";
        var phone = "<%=tbUserNow.getPhone() %>";
        var department = "<%=tbUserNow.getDepartment() %>";
        var profession = "<%=tbUserNow.getProfession() %>";
        var classes = "<%=tbUserNow.getClasses() %>";
        var balance = "<%=tbUserNow.getBalance() %>";
    </script>
    <script src="${ctx}/page/js/mywallet.js" charset="utf-8"></script>
</head>
<body>

<div id="top">
    <div class="top-nav-now" onclick="topNavClick(this)">我的钱包</div>
</div>

<div id="middle">
    <div id="middle-left">
        <div id="balance-title">好人卡（张）</div>
        <div id="balance-img"></div>
        <div id="balance-num">— —</div>
        <div id="btn-recharge" onclick="toggleBottom()">充值</div>
    </div>
    <div id="middle-center">
        <div id="incomings-title">收入（张）</div>
        <div id="incomings-num">0</div>
        <div id="outgoings-title">支出（张）</div>
        <div id="outgoings-num">0</div>
    </div>
    <div id="middle-right">
        <a id="to-prize" href="javascript:toPrize()">兑换奖品>></a>
    </div>

    <!-- 充值层 -->
    <div id="middle-bottom" class="layui-anim layui-anim-scale">
        <div id="num-box">
            <div id="userid-text" style="display: none"><%=tbUserNow.getId() %></div>
            <div id="account-text">充值账号：<%=tbUserNow.getAccount() %>（自己）</div>
            <div id="money-name">好人卡</div>
            <div id="btn-minus" onclick="addMinus(this)">-</div>
            <input name="num-text" id="num-text" oninput="changeMouse(this)" value="10" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
            <div id="btn-add" onclick="addMinus(this)">+</div>
            <div id="money"><span id="text">元</span><span id="num">10</span></div>
        </div>
        <div id="pay-box">
            <div id="pay-type-text">支付方式</div>
            <div id="pay-type-btn">支付宝</div>
            <div id="pay-msg">手机支付宝扫码，支付10元</div>
            <div id="pay-img"></div>
        </div>
    </div>
</div>

</body>
</html>
